import {SET_TOKEN,SET_USERINFO} from "@/store/utils/mutations"
import storage from "@/utils/helpers/storage"
export default {
	namespaced:"user",
	state:{
		token:storage.get('token')||"",
		userInfo:storage.get('userInfo')||"",
	},
	mutations:{
		[SET_TOKEN](state,payload){
			console.log(payload)
			state.token=payload
		},
		[SET_USERINFO](state,payload){
			state.userInfo=payload
		}
	}
}